import { translateTitle } from '@/utils/i18n'

const UserList = {
  UserList: {
    search: {
      form: {
        method: 'sysUserServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.用户名称'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.ApplicationInterface.登录账号'),
            labelHidden: false,
            disabled_edit: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.用户名称'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'select',
            name: 'ORGIDS',
            label: translateTitle('Dams.ApplicationInterface.组织机构'),
            isMultiple: true,
            options: [],
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'select',
            name: 'APPS',
            label: translateTitle('Dams.ApplicationInterface.系统'),
            labelHidden: false,
            isMultiple: true,
            tableHidden: true,
            options: [],
            isRules: true,
          },
          {
            type: 'input',
            name: 'USER_TEL',
            label: translateTitle('Dams.ApplicationInterface.电话'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'dateTime',
            name: 'VALID_DATE',
            label: translateTitle('Dams.ApplicationInterface.失效时间'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'JOB_NUMBER',
            label: translateTitle('Dams.ApplicationInterface.工号'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'DEPARTMENT',
            label: translateTitle('Dams.ApplicationInterface.部门'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'REMARK',
            label: translateTitle('Dams.ApplicationInterface.用户备注'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'USER_EMAIL',
            label: translateTitle('Dams.ApplicationInterface.邮箱'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'URGENT_PERSON',
            label: translateTitle('Dams.ApplicationInterface.紧急联系人'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'URGENT_PERSON_CONTACT',
            label: translateTitle('Dams.ApplicationInterface.紧急联系人电话'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'ADDWHO',
            label: translateTitle('Dams.ApplicationInterface.创建人Id'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ADDTIME',
            label: translateTitle('Dams.ApplicationInterface.新增时间'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'EDITTIME',
            label: translateTitle('Dams.ApplicationInterface.修改时间'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'EDITWHO',
            label: translateTitle('Dams.ApplicationInterface.修改人Id'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'AVAILABLE',
            label: translateTitle('Dams.ApplicationInterface.是否可用'),
            labelHidden: false,
            hidden: true,
            value: 'Y',
          },
          {
            type: 'input',
            name: 'BIRTHDATE',
            label: translateTitle('Dams.ApplicationInterface.出生日期'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ACTIVE_FLAG',
            label: translateTitle('Dams.ApplicationInterface.是否激活'),
            labelHidden: false,
            hidden: true,
            value: 'Y',
          },
          {
            type: 'input',
            name: 'UPDATE_PASSWORD_TIME',
            label: translateTitle('Dams.ApplicationInterface.上次修改密码时间'),
            labelHidden: false,
            hidden: true,
          },
          {
            type: 'input',
            name: 'ENTERPRISE_WECHAT_USER_ID',
            label: translateTitle('Dams.ApplicationInterface.企业微信userid'),
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    forbiddenMethod: 'sysUserServiceImpl.disableAndEnabled',
    updatePasswordMethod: 'sysUserServiceImpl.updatePassword',
    resetPws: 'sysUserServiceImpl.resetPassword',
    deleteMethod: 'sysUserServiceImpl.deleteById',
    updateMethod: 'sysUserServiceImpl.save',
    addMethod: 'sysUserServiceImpl.save',
  },
}
export default UserList
